package com.migration.model.olddb;

import jakarta.persistence.*;
import lombok.Data;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 *  实体类
 * 表名：sys_data_log
 * 自动生成的实体类
 */
@Data
@Entity
@Table(name = "sys_data_log")
public class SysDataLog implements Serializable {

    private static final long serialVersionUID = 1L;
    
    /**
     * id
     * 主键
     */
    @Id
    @Column(name = "id", nullable = false, length = 32)
    private String id;
    
    /**
     * 创建人登录名称
     */
    @Column(name = "create_by", length = 32)
    private String createBy;
    
    /**
     * 创建日期
     */
    @Column(name = "create_time")
    private java.time.LocalDateTime createTime;
    
    /**
     * 更新人登录名称
     */
    @Column(name = "update_by", length = 32)
    private String updateBy;
    
    /**
     * 更新日期
     */
    @Column(name = "update_time")
    private java.time.LocalDateTime updateTime;
    
    /**
     * 表名
     */
    @Column(name = "data_table", length = 32)
    private String dataTable;
    
    /**
     * 数据ID
     */
    @Column(name = "data_id", length = 32)
    private String dataId;
    
    /**
     * 数据内容
     */
    @Column(name = "data_content", length = 65535)
    private String dataContent;
    
    /**
     * 版本号
     */
    @Column(name = "data_version")
    private Integer dataVersion;
    
    @Override
    public String toString() {
        return "SysDataLog{" +
            "id=" + id +
            ", createBy=" + createBy +
            ", createTime=" + createTime +
            ", updateBy=" + updateBy +
            ", updateTime=" + updateTime +
            ", dataTable=" + dataTable +
            ", dataId=" + dataId +
            ", dataContent=" + dataContent +
            ", dataVersion=" + dataVersion +
        '}';
    }
} 